from core.args import DownloadArgs as Args
from core.args import DryRunArgs
from core.args import OptionalArgs
from core.downloader import Downloader

# 下载参数
download_args = Args()
download_args.output_dir('D:\downloadfile')  # 指定下载目录
download_args.filename('广场舞')  # 重名视频名
download_args.no_caption()  # 不下载字幕
download_args.format('flv')  # 指定格式

# 预运行参数
dry_run_args = DryRunArgs()
dry_run_args.info()

# 可选参数 版本与帮助
optional_args = OptionalArgs()
optional_args.version()
optional_args.help()

# 指定url和参数
downloader = Downloader(args=download_args)
downloader.url('https://www.bilibili.com/video/BV1cE41157Qz?from=search&seid=11238379916538554538')
downloader.start()
